package com.pkk.cloud.support.oauth2.client.detail.client.service.impl;

import com.pkk.cloud.support.oauth2.client.detail.client.entity.PenguinOauthClientScope;
import com.pkk.cloud.support.oauth2.client.detail.client.mapper.PenguinOauthClientScopeMapper;
import com.pkk.cloud.support.oauth2.client.detail.client.service.PenguinOauthClientScopeService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author peikunkun<br>
 * @version V1.0<br>
 * @Title: 客户端范围的业务类<br>
 * @Description: <><br>
 * @date 2020/3/17 0017 下午 5:56<br>
 * @URL:[]
 */
@Service
public class PenguinOauthClientScopeServiceImpl implements PenguinOauthClientScopeService {

  @Resource
  private PenguinOauthClientScopeMapper penguinOauthClientScopeMapper;

  /**
   * @Description: 获取授权范围
   * @Param: clientId
   * @return: java.util.List<com.pkk.cloud.support.oauth.center.client.entity.PenguinOauthClientScope>
   * @Author: peikunkun
   * @Date: 2020/3/18 0018 上午 9:48
   */
  @Override
  public List<PenguinOauthClientScope> findClientScopeByClientId(String clientId) {
    return penguinOauthClientScopeMapper.findClientScopeByClientId(clientId);
  }
}
